package com.yilin.xbr.service.member.impl;

import com.yilin.xbr.dao.member.AccountDao;
import com.yilin.xbr.entity.member.Account;
import com.yilin.xbr.service.member.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class AccountService implements IAccountService {
    @Autowired
    private AccountDao accountDao;

    @Override
    public Account getAccount(String accountId) {
        return accountDao.getAccount(accountId);
    }

    @Override
    public List<Account> accountAll(String id) {
        return  accountDao.accountAll(id);
    }
}
